package cn.zjutleo.village_server.service.converter;

import cn.zjutleo.village_server.entity.Message;
import cn.zjutleo.village_server.vo.MessageVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author : Qin Zhenghan
 * @date : Created in 2021/9/2
 * @description: Message实体转化VO类
 */
@Mapper
public interface MessageEntityToVo {

    MessageEntityToVo INSTANCES = Mappers.getMapper(MessageEntityToVo.class);

    MessageVo toMessageVo(Message message);
}
